import request from '@/utils/request'

// 查询年级管理列表
export function listNianji(query) {
  return request({
    url: '/ziliao/nianji/list',
    method: 'get',
    params: query
  })
}

// 查询年级管理列表
export function listNianjiAll(query) {
  return request({
    url: '/ziliao/nianji/listAll',
    method: 'get',
    params: query
  })
}

export function listAllNj(query) {
  return request({
    url: '/ziliao/nianji/listAllNj',
    method: 'get',
    params: query
  })
}

export function listAllNjSon(query) {
  return request({
    url: '/ziliao/nianji/listAllNjSon',
    method: 'get',
    params: query
  })
}

// 查询年级管理详细
export function getNianji(id) {
  return request({
    url: '/ziliao/nianji/' + id,
    method: 'get'
  })
}

// 新增年级管理
export function addNianji(data) {
  return request({
    url: '/ziliao/nianji',
    method: 'post',
    data: data
  })
}

// 修改年级管理
export function updateNianji(data) {
  return request({
    url: '/ziliao/nianji',
    method: 'put',
    data: data
  })
}

// 删除年级管理
export function delNianji(id) {
  return request({
    url: '/ziliao/nianji/' + id,
    method: 'delete'
  })
}
